-- GENERATED SPELL FOR [Scarlet Priest] --


function spell0_10608(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(12039,pUnit)
pUnit:RegisterEvent('Sorts_10608', 3000, 1)
end

function spell1_10608(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(15498,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10608', 2500, 1)
end

function spell2_10608(pUnit, Event) --@Power Word: Fortitude,n/a--
pUnit:FullCastSpellOnTarget(13864,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10608', 525, 1)
end

function spell3_10608(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(8362,pUnit)
pUnit:RegisterEvent('Sorts_10608', 22000, 1)
end

function Sorts_10608(pUnit, Event)
local choix_sorts_10608 = math.random(0, 3)
if choix_sorts_10608 == 0 then
pUnit:RegisterEvent('spell0_10608', 1, 1)
end
if choix_sorts_10608 == 1 then
pUnit:RegisterEvent('spell1_10608', 1, 1)
end
if choix_sorts_10608 == 2 then
pUnit:RegisterEvent('spell2_10608', 1, 1)
end
if choix_sorts_10608 == 3 then
pUnit:RegisterEvent('spell3_10608', 1, 1)
end
end

function mob10608_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10608', math.random(1500, 3000), 1)
end

function mob10608_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10608_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10608_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10608, 1, 'mob10608_Action')
RegisterUnitEvent(10608, 2, 'mob10608_Leave')
RegisterUnitEvent(10608, 3, 'mob10608_Kill')
RegisterUnitEvent(10608, 4, 'mob10608_Die')
